<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>

<s:form name="formBody" id="formBody">

<s:hidden name="start"/>
<s:hidden name="count"/>
<s:hidden name="orderBy"/>
<s:hidden name="ascDesc"/>
<s:hidden name="previousPage"/>
<s:hidden name="gotoPage"/>
<s:hidden name="actionMethod" value="%{actionMethod}"/>
<s:token/>

<div class="header"><span><span class="ico gray administrator"></span>Delegasi Pengetikan</span>
</div><!-- End header -->	
<div class="content" >
	
		<!-- Third / Half column-->
		<div class="widgets">
		
			<div class="section ">
				<label>Nama Debitur</label>   
				<div> 
					<s:textfield cssClass="large" name="nama" labelposition="left" maxlength="20" id="name" autocomplete="off"/>
				</div>
			</div>
			
			<div class="section last">
	            <div>
	            	<s:reset cssClass="uibutton special" value="RESET" cssStyle="width:100px"/>
	            	<s:submit action="%{actionMethod}" value="SEARCH" indicator="indicator" cssClass="uibutton" cssStyle="width:100px"/> 
	           	</div>
	        </div>
			
		</div><!-- End Third / Half column-->
	
   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->

<div class="content" >

		<div class="tableName">
		
		<table class="display static " id="static">
			<thead>
				<tr>
					<th><input type="checkbox" id="checkAll1" class="checkAll"/></th>
					<th><div class="th_wrapp"><s:text name="label.no"/></div></th>
					<th style="text-align:left"><div class="th_wrapp">Nama Debitur</div></th>
					<th style="text-align:left"><div class="th_wrapp">Proses</div></th>
					<th><div class="th_wrapp"><s:text name="label.letterTypis"/></div></th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="managements" status="sequence">
				<tr class="odd gradeX">
					<td class="center">
						<input <s:if test="courier != null && courier.name !=''"> checked="true"</s:if> type="checkbox" name="listId[<s:property value="%{start+#sequence.index}"/>].managementId" value="<s:property value="id"/>" class="chkbox" id="check<s:property value="%{start+#sequence.index+1}"/>"/>
					</td>
				    <td style="text-align:center"><s:property value="%{start+#sequence.index+1}"/></td>
					<td style="text-align:left">
						<span class="tip" >
								<a href="DetailKlienAction_detail.do?id=<s:property value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"/>&prev=DelegasiKurirAction_list" title="Detail"><s:property value="client.debitur.name"/></a>
						</span>
					</td>
					<td style="text-align:left"><s:property value="process"/></td>
					<s:if test="courier != null && courier.name !=''">
					<td class="center"><s:property value="courier.name"/></td>
					</s:if>
					<s:else>
					<td class="center">
						<s:select cssClass="large chzn-select" cssStyle="text-align:left" list="listKurir" listKey="id" listValue="name" name="listId[%{start+#sequence.index}].courierId" headerKey="0" headerValue="Select below" disabled="%{readOnly}" id="select%{start+#sequence.index+1}"/>
					</td>
					</s:else>
				</tr>
				</s:iterator>
			</tbody>
		</table>
		
		<div>
			<s:submit action="DelegasiKurirAction_save" value="SUBMIT" indicator="indicator" cssClass="uibutton" cssStyle="width:100px;float: left"/>
			<s:property value="%{pagerItem}" escape="false"/>
			<div class="clear"></div>
		</div>
		
		</div>
	
   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->
</s:form>